﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020003FD RID: 1021
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class DrinkMakerChallengeScRsp : IMessage<DrinkMakerChallengeScRsp>, IMessage, IEquatable<DrinkMakerChallengeScRsp>, IDeepCloneable<DrinkMakerChallengeScRsp>, IBufferMessage
	{
		// Token: 0x17000D18 RID: 3352
		// (get) Token: 0x06002DB9 RID: 11705 RVA: 0x0007DE5B File Offset: 0x0007C05B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<DrinkMakerChallengeScRsp> Parser
		{
			get
			{
				return DrinkMakerChallengeScRsp._parser;
			}
		}

		// Token: 0x17000D19 RID: 3353
		// (get) Token: 0x06002DBA RID: 11706 RVA: 0x0007DE62 File Offset: 0x0007C062
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return DrinkMakerChallengeScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000D1A RID: 3354
		// (get) Token: 0x06002DBB RID: 11707 RVA: 0x0007DE74 File Offset: 0x0007C074
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return DrinkMakerChallengeScRsp.Descriptor;
			}
		}

		// Token: 0x06002DBC RID: 11708 RVA: 0x0007DE7B File Offset: 0x0007C07B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DrinkMakerChallengeScRsp()
		{
		}

		// Token: 0x06002DBD RID: 11709 RVA: 0x0007DE84 File Offset: 0x0007C084
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DrinkMakerChallengeScRsp(DrinkMakerChallengeScRsp other) : this()
		{
			this.challengeId_ = other.challengeId_;
			this.retcode_ = other.retcode_;
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this.isSuccess_ = other.isSuccess_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002DBE RID: 11710 RVA: 0x0007DEE8 File Offset: 0x0007C0E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DrinkMakerChallengeScRsp Clone()
		{
			return new DrinkMakerChallengeScRsp(this);
		}

		// Token: 0x17000D1B RID: 3355
		// (get) Token: 0x06002DBF RID: 11711 RVA: 0x0007DEF0 File Offset: 0x0007C0F0
		// (set) Token: 0x06002DC0 RID: 11712 RVA: 0x0007DEF8 File Offset: 0x0007C0F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ChallengeId
		{
			get
			{
				return this.challengeId_;
			}
			set
			{
				this.challengeId_ = value;
			}
		}

		// Token: 0x17000D1C RID: 3356
		// (get) Token: 0x06002DC1 RID: 11713 RVA: 0x0007DF01 File Offset: 0x0007C101
		// (set) Token: 0x06002DC2 RID: 11714 RVA: 0x0007DF09 File Offset: 0x0007C109
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17000D1D RID: 3357
		// (get) Token: 0x06002DC3 RID: 11715 RVA: 0x0007DF12 File Offset: 0x0007C112
		// (set) Token: 0x06002DC4 RID: 11716 RVA: 0x0007DF1A File Offset: 0x0007C11A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x17000D1E RID: 3358
		// (get) Token: 0x06002DC5 RID: 11717 RVA: 0x0007DF23 File Offset: 0x0007C123
		// (set) Token: 0x06002DC6 RID: 11718 RVA: 0x0007DF2B File Offset: 0x0007C12B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsSuccess
		{
			get
			{
				return this.isSuccess_;
			}
			set
			{
				this.isSuccess_ = value;
			}
		}

		// Token: 0x06002DC7 RID: 11719 RVA: 0x0007DF34 File Offset: 0x0007C134
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as DrinkMakerChallengeScRsp);
		}

		// Token: 0x06002DC8 RID: 11720 RVA: 0x0007DF44 File Offset: 0x0007C144
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(DrinkMakerChallengeScRsp other)
		{
			return other != null && (other == this || (this.ChallengeId == other.ChallengeId && this.Retcode == other.Retcode && object.Equals(this.Reward, other.Reward) && this.IsSuccess == other.IsSuccess && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002DC9 RID: 11721 RVA: 0x0007DFB4 File Offset: 0x0007C1B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ChallengeId != 0U)
			{
				num ^= this.ChallengeId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this.IsSuccess)
			{
				num ^= this.IsSuccess.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002DCA RID: 11722 RVA: 0x0007E03B File Offset: 0x0007C23B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002DCB RID: 11723 RVA: 0x0007E043 File Offset: 0x0007C243
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002DCC RID: 11724 RVA: 0x0007E04C File Offset: 0x0007C24C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Retcode);
			}
			if (this.reward_ != null)
			{
				output.WriteRawTag(26);
				output.WriteMessage(this.Reward);
			}
			if (this.IsSuccess)
			{
				output.WriteRawTag(64);
				output.WriteBool(this.IsSuccess);
			}
			if (this.ChallengeId != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.ChallengeId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002DCD RID: 11725 RVA: 0x0007E0E0 File Offset: 0x0007C2E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ChallengeId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ChallengeId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this.IsSuccess)
			{
				num += 2;
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002DCE RID: 11726 RVA: 0x0007E15C File Offset: 0x0007C35C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(DrinkMakerChallengeScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ChallengeId != 0U)
			{
				this.ChallengeId = other.ChallengeId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			if (other.IsSuccess)
			{
				this.IsSuccess = other.IsSuccess;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06002DCF RID: 11727 RVA: 0x0007E1EC File Offset: 0x0007C3EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002DD0 RID: 11728 RVA: 0x0007E1F8 File Offset: 0x0007C3F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 26U)
				{
					if (num == 16U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 26U)
					{
						if (this.reward_ == null)
						{
							this.Reward = new ItemList();
						}
						input.ReadMessage(this.Reward);
						continue;
					}
				}
				else
				{
					if (num == 64U)
					{
						this.IsSuccess = input.ReadBool();
						continue;
					}
					if (num == 88U)
					{
						this.ChallengeId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04001212 RID: 4626
		private static readonly MessageParser<DrinkMakerChallengeScRsp> _parser = new MessageParser<DrinkMakerChallengeScRsp>(() => new DrinkMakerChallengeScRsp());

		// Token: 0x04001213 RID: 4627
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001214 RID: 4628
		public const int ChallengeIdFieldNumber = 11;

		// Token: 0x04001215 RID: 4629
		private uint challengeId_;

		// Token: 0x04001216 RID: 4630
		public const int RetcodeFieldNumber = 2;

		// Token: 0x04001217 RID: 4631
		private uint retcode_;

		// Token: 0x04001218 RID: 4632
		public const int RewardFieldNumber = 3;

		// Token: 0x04001219 RID: 4633
		private ItemList reward_;

		// Token: 0x0400121A RID: 4634
		public const int IsSuccessFieldNumber = 8;

		// Token: 0x0400121B RID: 4635
		private bool isSuccess_;
	}
}
